import { numberRandom } from "./number"

/**
 * 产生一个随机的rgb颜色
 * @return { String }  返回颜色rgb值字符串内容，如：rgb(201, 57, 96)
 * @example
 * ```
 * colorRandom()
 * ```
 */
export const colorRandom = () => {
  const r = numberRandom(0,255);
  const g = numberRandom(0,255);
  const b = numberRandom(0,255);
  const result = 'rgb(' + r + ',' + g + ',' + b + ')';
  return result
 }